package cn.e3mall.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
	
	
	//跳转到商城首页
		@RequestMapping("/")
		public String showList(){
			return "index";
		}
		
		//跳转到各个jsp    restfu格式
		@RequestMapping("/{page}")
		public String showpage(@PathVariable String page){
			
			return page;
			
		}
	
	
}
